package com.xizi.static1;

class A {
    public A() {
        System.out.println("构造器 A");
    }

    // 静态变量
    public static String staticField = "静态变量A";
    // 变量
    public String field = "变量A";

    // 静态初始化块
    static {
        System.out.println(staticField);
        System.out.println("静态初始化块A");
    }

    // 初始化块
    {
        System.out.println(field);
        System.out.println("初始化块A");
    }
}